Repository navigation
feat(lang-dart): add built-in Dart Language plugin in plugins/languages/dart - #142
Merged
Merged
Conversation
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the built-in pure-Rust Dart Language plugin (
codeint-lang-dartinplugins/languages/dart), extract shared C-family token-scanning helpers intocrates/model/src/scan.rsfor both PHP and Dart, wire Dart into the CLI and Seam 2 conformance suite, and document Dart support with real-world measurements.Closes #139
Closes #140
Closes #141
Tier
Tier 2 from the tier check: new built-in Language plugin crate, shared
codeint_model::scanhelpers, CLI registration, Seam 2 conformance test, and documentation updates.Task
Spec #139 (Tickets #140 & #141):
#![forbid(unsafe_code)]Dart lexer, Source-set classifier, function/decision extractor, 5 Flagged-line rules, directive extractor, Pubpackage:+ relative resolver, and Pubworkspace:discoverycrates/model/src/scan.rsused by bothcodeint-lang-phpandcodeint-lang-dartcrates/cli/src/check.rs,crates/plugin-host/tests/conformance.rs,crates/cli/tests/check.rs,checks.toml,README.md, anddocs/reference.mddart-lang/pubandflutter/packages(0 unparsable, 0 unresolved imports)Fail-first test
crates/plugin-host/tests/conformance.rs::built_in_dart_plugin_passes_seam_2_conformanceandcrates/cli/tests/check.rs::built_in_dart_plugin_measures_pub_workspace_metrics_and_cyclesBUILT_IN_LANGUAGE_PLUGINScodeint-lang-darttests, all 8codeint-lang-phptests, all 5referencetests, and the CLI Dart Pub workspace test pass.Checks
cargo test --workspace --lockedcargo clippy --workspace --all-targets --locked -- -D warnings./target/release/codeint diff origin/mainlefthookpre-commit hooksSafety proof
codeint-lang-dartuses#![forbid(unsafe_code)], zero C FFI, and passes all Seam 2 conformance invariants (determinism, concurrent lowering, CRLF normalization, error reporting).built_in_dart_plugin_passes_seam_2_conformancepassed, and release binary measureddart-lang/pub(547 files, 0 unparsable) andflutter/packages(4,137 files, 0 unparsable).interrogate: none run below Tier 3.Runtime evidence
dart-lang/pub: 547 files (145 prod / 26,170 prod lines), 0 unparsable, 0 unresolved imports — 0.88s (Erosion 44.4%, Duplication 0.5%, Verbosity 1.7%, Import cycles 78.6%).flutter/packages: 4,137 files (2,322 prod / 434,407 prod lines), 0 unparsable, 0 unresolved imports — 3.68s (Erosion 45.9%, Duplication 23.1%, Verbosity 23.3%, Import cycles 18.5%).Gaps